#!/bin/bash

case $1 in
	'uptime')
	uptime | awk -F ',' '{ print $1 }' | awk -F 'up' '{ print $2}'
	;;
	'cpu')
	cat /proc/cpuinfo | grep name | awk -F ':' '{ print $2 }'
	;;

	'cpu-mhz')
	cat /proc/cpuinfo | grep MH | awk -F ':' '{ print $2 }'
	;;

	'cpu-cache')
	cat /proc/cpuinfo | grep cache | awk -F ':' '{ print $2 }'
	;;

	'memtotal')
	cat /proc/meminfo | grep MemTotal | awk -F ' ' '{ print $2" "$3 }'
	;;	




*)
	echo 'ERROR'
	;;
esac
